<?php
 //ВНИМАНИЕ!!!
 /**********************************************************************/
 /*********\ Это СТАНДАРТНАЯ ШАПКА, ДЛЯ ДЕМОНСТРАЦИИ ДИЗАЙНЕРАМ ПРИМЕРА использования этой функции!
 /*************************************************************************/ 
echo '<div class="top">';

/* VKONTAKTE */
$new_mail = mysql_query("SELECT * FROM `mail` WHERE (`adresat` = '$uid' AND `chit` = '0' AND `type` = 'in')");
if(mysql_num_rows($new_mail) > 0 && $uid){
echo '<div id="mhead" class="mhead"><a href="http://'.$set['home'].'/mail/index.php?a=new" class="hb_wrap mhb_home">';
echo '<div class="hb_btn mhi_home"><img src="http://'.$set['home'].'/design/'.$user['design'].'/img/mail.png"></div>';
echo '</a>';
}else{
echo '<div id="mhead" class="mhead"><a href="http://'.$set['home'].'/office.php" class="hb_wrap mhb_home">';
echo '<div class="hb_btn mhi_home"><img src="http://'.$set['home'].'/design/'.$user['design'].'/img/office.png"></div>';
echo '</a>';  
}

    if($uid){
        echo '<div id="mheadr" class="mheadr"><a href="http://'.$set['home'].'/exit.php" class="hb_wrapr mhb_homer">';
    echo '<div class="hb_btnr mhi_homer"><img src="http://'.$set['home'].'/design/'.$user['design'].'/img/exit.png"></div>';
}else{
    echo '<div id="mheadr" class="mheadr"><a href="http://'.$set['home'].'/reg.php" class="hb_wrapr mhb_homer">';
    echo '<div class="hb_btnr mhi_homer"><img src="http://'.$set['home'].'/design/'.$user['design'].'/img/plus.png"></div>';
}
echo '</a>';

echo '<div class="txt">';
echo '<a href="http://'.$set['home'].'" class="hb_wrapc mhb_homec"><img src="http://'.$set['home'].'/design/'.$user['design'].'/img/logo.png"></img></a>';
echo '</div></div>';

/* VKONTAKTE */

echo '</div>'; //mhead

echo '</div>'; //top
echo '<div class="block">';